package com.ktgj.other.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.other.mapper.RcPartnersFinanceInformationMapper;
import com.ktgj.other.domain.RcPartnersFinanceInformation;
import com.ktgj.other.service.IRcPartnersFinanceInformationService;

/**
 * 专车合作商财务信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-07-27
 */
@Service
public class RcPartnersFinanceInformationServiceImpl implements IRcPartnersFinanceInformationService 
{
    @Autowired
    private RcPartnersFinanceInformationMapper rcPartnersFinanceInformationMapper;

    /**
     * 查询专车合作商财务信息
     * 
     * @param partnerfinanceid 专车合作商财务信息ID
     * @return 专车合作商财务信息
     */
    @Override
    public RcPartnersFinanceInformation selectRcPartnersFinanceInformationById(Long partnerfinanceid)
    {
        return rcPartnersFinanceInformationMapper.selectRcPartnersFinanceInformationById(partnerfinanceid);
    }

    /**
     * 查询专车合作商财务信息列表
     * 
     * @param rcPartnersFinanceInformation 专车合作商财务信息
     * @return 专车合作商财务信息
     */
    @Override
    public List<RcPartnersFinanceInformation> selectRcPartnersFinanceInformationList(RcPartnersFinanceInformation rcPartnersFinanceInformation)
    {
        return rcPartnersFinanceInformationMapper.selectRcPartnersFinanceInformationList(rcPartnersFinanceInformation);
    }

    /**
     * 新增专车合作商财务信息
     * 
     * @param rcPartnersFinanceInformation 专车合作商财务信息
     * @return 结果
     */
    @Override
    public int insertRcPartnersFinanceInformation(RcPartnersFinanceInformation rcPartnersFinanceInformation)
    {
        return rcPartnersFinanceInformationMapper.insertRcPartnersFinanceInformation(rcPartnersFinanceInformation);
    }

    /**
     * 修改专车合作商财务信息
     * 
     * @param rcPartnersFinanceInformation 专车合作商财务信息
     * @return 结果
     */
    @Override
    public int updateRcPartnersFinanceInformation(RcPartnersFinanceInformation rcPartnersFinanceInformation)
    {
        return rcPartnersFinanceInformationMapper.updateRcPartnersFinanceInformation(rcPartnersFinanceInformation);
    }

    /**
     * 批量删除专车合作商财务信息
     * 
     * @param partnerfinanceids 需要删除的专车合作商财务信息ID
     * @return 结果
     */
    @Override
    public int deleteRcPartnersFinanceInformationByIds(Long[] partnerfinanceids)
    {
        return rcPartnersFinanceInformationMapper.deleteRcPartnersFinanceInformationByIds(partnerfinanceids);
    }

    /**
     * 删除专车合作商财务信息信息
     * 
     * @param partnerfinanceid 专车合作商财务信息ID
     * @return 结果
     */
    @Override
    public int deleteRcPartnersFinanceInformationById(Long partnerfinanceid)
    {
        return rcPartnersFinanceInformationMapper.deleteRcPartnersFinanceInformationById(partnerfinanceid);
    }
}
